<?php


namespace App\Http\Controllers\Mini;


use App\Http\Controllers\Controller;
use App\Services\UserService;

/**
 * 基础控制器
 * Class BaseController
 * @package App\Http\Controllers\Mini
 */
class BaseController extends Controller
{

    public $user_info; //用户信息

    public function __destruct()
    {
        // TODO: Implement __destruct() method.
        $model = new UserService();
        $this->user_info = $model->getUserInfo();
    }
}
